import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/companyEmployee/list',
    method: 'get',
    params: params
  })
}
export function save(data) {
  return request({
    url:'/admin/companyEmployee/save',
    method: 'post',
    data:data
  })
}
export function find(id,params) {
  return request({
    url:'/admin/companyEmployee/find/'+id,
    method: 'get',
    params:params
  })
}

//员工离职的接口
export function update(data) {
  return request({
    url: '/admin/companyEmployee/update',
    method: 'post',
    data: data
  })
}

//员工批量导入的接口
export function upload(params, data) {
    return request({
      url: '/admin/companyEmployee/upload',
      method: 'post',
      params:params,
      data: data
    })
  }

export function del(ids) {
  return request({
    url: '/admin/companyEmployee/del/' + ids,
    method: 'post'
  })
}

//修改员工信息接口
export function updateCompanyMember(data) {
    return request({
      url: '/admin/companyEmployee/update',
      method: 'post',
      data: data
    })
  }

  //修改员工信息接口
export function countEmployeeNum(id) {
    return request({
      url: '/admin/companyEmployee/countEmployeeNum/'+id,
      method: 'get',
    })
  }